USE [WGRUS-phone]
GO

DROP TABLE [dbo].[CustomerEvent]
GO

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[CustomerEvent](
	[Id] [DATETIME2] NOT NULL DEFAULT(SYSDATETIME()),
	[TelefonNr] [int] NOT NULL,
	[Navn] [nvarchar](50) NOT NULL,
	[Gade] [nvarchar](50) NOT NULL,
	[PostNr] [int] NOT NULL,
	[By] [nvarchar](50) NOT NULL,
	[Oprettet] [datetime] NOT NULL,
	[Email] [nvarchar](50) NOT NULL,
	[Source] [nvarchar](10) NULL,
	[Event] [nvarchar](10) NOT NULL,

 CONSTRAINT [PK_CustomerEvent] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

